
<%@page import="ejb.Videogame"%>
<%@page import="java.util.List"%>
<%@page import="ejb.Utente"%>
<%@page import="ejb.ArticoloNuovo"%>
<%@page import="ejb.ArticoloUsato"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@include file="wrapper.jsp" %>

<div class="container">
      
<div class="row-fluid">

<div class="span12">
<div class="span8">

<div id="content">
<center>
Inserisci Articolo Nuovo

<div id="cornice">
<form action="Controller" method="POST">
    Nome: <input type="text" name="nome"><br />        
    Descrizione generale: <input type="text" name="descrizione"><br />
    Disponibilita: <input type="text" name="disponibilita" /><br /> 
    Prezzo: <input type="text" name="prezzo"><br />
    Sconti: <input type="text" name="sconti"><br /><br />
    
    <button type="button"><p> Path immagine: </p></button>
    <input type="file" name="pathImmagine"/>
    
    <input type="text" name="pathImmagine"><br /><br />
    Videogame: <select name="idVideogame"><br>
    <%
    String idVid;
    List<Videogame> videogames = (List<Videogame>)session.getAttribute("videogames");
                                         
    for(Videogame v:videogames) {
            idVid =v.getId().toString();
    %>
    <option  value="<%=idVid%>"><%=v.getNome()%></OPTION><% }%>
    </select>
    <input type="submit" value="inserisciArtNuovo" name="button"/>
</form>
</div>
</center>
                           
</div><br><br>
                    
 <hr width="600"> 
 
<div id="content">
<center>
Modifica Articolo Nuovo
<div id="cornice">
    <form action="Controller" method="POST">
     <select name="idArticoloNuovoEdit">
        <%
        String idMod;
        List<ArticoloNuovo> l = (List<ArticoloNuovo>)session.getAttribute("artNuovi");
                                         
        for(ArticoloNuovo a:l) {
            idMod =a.getId().toString();
        %>
        <OPTION  value="<%=idMod%>"><%=a.getNome()%></OPTION><% }%>
     </select>
     <input type="submit" value="modificaArtNuovo" name="button"/>
    </form>
    
</div>
</center>
                           
</div><br><br>
                    
<hr width="600"> 

<div id="content">
<center>
Cancella Articolo Nuovo
<div id="cornice">
    <form action="Controller" method="POST">
     <select name="idArticoloNuovoCanc">
        <%
        String idModCanc;
        List<ArticoloNuovo> l_canc = (List<ArticoloNuovo>)session.getAttribute("artNuovi");
                                         
        for(ArticoloNuovo a:l_canc) {
            idModCanc =a.getId().toString();
        %>
        <OPTION  value="<%=idModCanc%>"><%=a.getNome()%></OPTION><% }%>
     </select>
     <input type="submit" value="cancellaArtNuovo" name="button"/>
    </form>
</div>
</center>
                           
</div><br><br>
                           
</div><br><br>
</div> 
</div>
<iframe src="https://www.google.com/calendar/embed?src=f7ni105q3cfp27s1t374amoqug%40group.calendar.google.com&ctz=Europe/Rome" style="border: 0" width="320" height="240" frameborder="0" scrolling="no" align="right">></iframe>
</div>
</body>
</html>

 
 